<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script>
		var a = [1,2,3,4,5,6,7,8,9];
		for (var i = 0; i < a.length; i++) {
			if(a[i] % 3 == 0){
				console.log(a[i]);
				break;
			}
		}
		</script>
	</head>
	<body>
	</body>
</html>
